@import "./assets/scss/reset.scss";
body{
    font-family: '微软雅黑';
    font-size: 14px;
}
//element-ui基本样式修改

//返顶按钮
.el-backtop {
    color: $theme-color !important;
    border-radius: 8px !important;
}

//单选框
.el-radio-group {
    .el-radio-button__orig-radio:checked+.el-radio-button__inner {
        border-color: $theme-color;
        background-color: $theme-color;
    }

    label {
        &:not(is-active) {
            span:hover {
                color: $theme-color;
            }
        }
    }
}

.el-radio {
    .el-radio__input {
        &.is-checked {
            .el-radio__inner {
                border-color: $theme-color;
                background-color: $theme-color;
            }

            &+.el-radio__label {
                color: $theme-color;
            }
        }

        &:hover {
            .el-radio__inner {
                border-color: $theme-color !important;
            }
        }
    }

}

//按钮
.el-button {
    border-radius: unset !important;

    //普通按钮
    &.el-button--primary {
        background-color: $theme-color !important;
        color: #fff !important;
        border: unset !important;

        &:hover {
            color: #fff;
            background-color: $theme-hover !important;
        }
    }

    //朴素按钮
    &.el-button--default {

        &:hover,
        &:focus {
            color: $theme-color !important;
            border-color: $theme-color !important;
        }
    }

    &.is-disabled {
        &:hover {
            color: #C0C4CC !important;
            border-color: #EBEEF5 !important;
        }
    }
}

//竖形菜单
.el-menu {
    .el-submenu {
        .el-submenu__title {
            height: 50px;
            line-height: 50px;
            font-size: 15px;
            color: #000 !important;
            font-weight: bold;
        }

        .el-menu--inline {
            .el-menu-item-group__title {
                padding: unset;
            }

            ul {
                .el-menu-item {
                    height: 50.05px;
                    line-height: 50.05px;
                    font-size: 15px;
                    padding-left: 30px !important;
                    color: $theme-color;
                }

                .is-active {
                    color: #eb7b0e;
                    font-weight: bold;
                }
            }
        }
    }
}

//输入框
.el-input {
    .el-input__inner {
        border-radius: unset;

        &:focus {
            border-color: $theme-color;
        }
    }
    //后缀
    .el-input__suffix{
        .el-input__icon{
            font-size: 18px;
        }
        .el-icon-circle-check{
            color: $theme-color;
        }
    }
}

.el-textarea{
    &.is-disabled{
        .el-textarea__inner{
            color: #000!important;
        }
    }
}
//el面包屑
.el-breadcrumb {
    line-height: unset !important;

    //el面包屑是link的样式
    .el-breadcrumb__inner {

        a,
        &.is-link {
            color: $theme-color;
            font-weight: normal;

            &:hover {
                color: $theme-color;
            }
        }
    }

}

//el下拉菜单
.el-dropdown-menu {
    padding: 5px 0 !important;

    .el-dropdown-menu__item {
        padding: 0 10px;
        color: #000;

        a {
            color: #000;
            text-decoration: unset;

            &:active {
                color: $theme-color !important;
            }

            &:visited {
                color: #000;
            }
        }

        &:focus,
        &:not(.is-disabled):hover {
            background-color: $theme-rgba-1;
        }
    }
}

//复选框

.el-checkbox {
    vertical-align: unset;

    .el-checkbox__input {
        &.is-checked+.el-checkbox__label {
            color: #000;
        }

        &.is-focus .el-checkbox__inner {
            border-color: #888;
        }

        &.is-checked .el-checkbox__inner {
            border-color: #888;
            background-color: #fff;
        }
    }

    .el-checkbox__inner {
        border-radius: unset;
        width: 15px;
        height: 15px;
        text-align: center;
        border-color: #888;

        &:hover {
            border-color: #888;
        }

        &::after {
            border-color: #000;
            border-width: 2px;
            transition: all .05s;

        }
    }

    .el-checkbox__label {
        color: #000;
    }

}

//表单
.el-form {
    .el-form-item {
        display: flex;
        justify-content: center;
        align-items: center;

        .el-form-item__content {
            flex: 1;
        }

        .el-form-item__label {
            text-align: center;
            font-size: 15px;
            width: 100px;
            white-space: nowrap;
        }
    }

}

//对话框
.el-dialog {
    border-radius: 4px !important;

    //对话框头部
    .el-dialog__header {
        padding: 15px 20px;

        .el-dialog__title {
            color: $theme-color;
        }

        .el-dialog__headerbtn {
            top: 15px;

            i {
                font-size: 24px;
                color: #000;

                &:hover {
                    color: $theme-color;
                }
            }
        }

    }

    //对话框内容
    .el-dialog__body {
        padding: 0 20px;
        margin-bottom: 20px;
    }

    //对话框脚部
    .el-dialog__footer {
        border-top: 1px solid $border-color;
        overflow: hidden;
        padding: 10px;
    }
}

//选项卡
.el-tabs {

    //tab条下面的border
    .el-tabs__nav-wrap::after {
        height: 3px;
    }

    //tab选项卡
    .el-tabs__header {
        .el-tabs__item {
            font-size: 15px;

            &:hover,
            &.is-active {
                color: $theme-color;

            }
        }

        .el-tabs__active-bar {
            background-color: $theme-color;
        }
    }

    //选项卡内容
    .el-tabs__content {
        font-size: 15px;
    }
}

//message提示
.el-message {
    z-index: 10000 !important;
}

//表格
.el-table {
    .el-table__body-wrapper {
        overflow-x: hidden;
        &::-webkit-scrollbar {
            width: 4px;
        }

        &::-webkit-scrollbar-thumb {
            border-radius: 10px;
            background: $theme-rgba-5;
        }

        &::-webkit-scrollbar-track {
            background: transparent;
        }
    }

    //悬浮色
    .el-table__body tr.hover-row.el-table__row--striped>td,
    .el-table__body tr.hover-row>td {
        background-color: $theme-rgba-1 !important;
    }

    tr {
        font-size: 15px;
        color: #000;
    }

}

//分页
.el-pagination {
    padding: 0;

    .btn-prev,
    .btn-next {
        .el-icon {
            font-size: 20px !important;

            &:hover {
                color: $theme-color;
            }

        }
    }

    .el-pager {
        .number {
            font-size: 16px;

            &:hover {
                color: $theme-color !important;
            }
        }

        .active {
            background-color: $theme-color !important;

            &:hover {
                color: #fff !important;
            }
        }

        .el-icon-more,
        .el-icon-d-arrow-right {
            color: $theme-color !important;
        }
    }
}

//文本框
.el-textarea {
    .el-input__count {
        color: #606266 !important;
    }

    .el-textarea__inner {
        border-radius: unset;
        font-size: 15px;

        &:focus {
            border-color: $theme-color
        }
    }
}

//e提示
.el-message{
    min-width: 380px;
    top: 54px!important;
    .el-message__icon, .el-message__closeBtn{
        font-size: 20px;
    }
    .el-message__content{
        font-size: 16px;
    }
}

//气泡
.el-popover{
    .el-popconfirm{
        .el-popconfirm__main{
            font-size: 15px;
            margin-bottom: 10px;
            letter-spacing: 1px;
        }
        .el-popconfirm__action{
            .el-button--text{
                color: $theme-color;
                border: 1px solid $theme-color;
                padding: 6px 11px;
                &:hover{
                    background-color: $theme-rgba-1;
                }
            }
            .el-button--primary{
                padding: 7px 12px;
            }
        }
    }

}

.el-tooltip__popper{
    font-size: 15px!important;
}

.errorTransition{
    display: inline-block;
    color: red;
    animation: myError .5s;
    -webkit-animation:myError .5s;
}

@keyframes myError{
    0%,
    100% {
        transform: rotate(0deg);
    }
    15%,
    85%{
        transform: rotate(-2deg);
    }
    30%,
    70%{
        transform: rotate(2deg);
    }
    45%,
    55%{
        transform: rotate(-2deg);
    }
    50%{
        transform: rotate(2deg);
    }
}
